﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Permission.Validator;
using Telerik.Web.Mvc.UI;


namespace Microhard.Permission.Models
{   
    /// <summary>
    /// 组织机构
    /// </summary>
   [FluentValidation.Attributes.Validator(typeof(GroupValidator))]
    public class Group
    {
        public Guid ID { set; get; }
        public Group Parent { set; get; }
        public string Name { set; get; }
        public User Manager { set; get; }
        public bool IsHasSub { set; get; }
        public List<User> Employees { set; get; }
        public List<Group> SubOrgs { set; get; }
    }
}
